load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "canbus_agilex_protocol",
    srcs = [
      "accel_cmd_130.cc",
      "accel_rpt_131.cc",
      "global_rpt_151.cc",
      "steering_motor_rpt_1_201.cc",
      "steering_motor_rpt_2_202.cc",
      "steering_motor_rpt_3_203.cc",
    ],
    hdrs = [
      "accel_cmd_130.h",
      "accel_rpt_131.h",
      "global_rpt_151.h",
      "steering_motor_rpt_1_201.h",
      "steering_motor_rpt_2_202.h",
      "steering_motor_rpt_3_203.h",
    ],
    deps = [
        "//modules/drivers/canbus/common:canbus_common",
        "//modules/canbus/proto:canbus_proto",
        "//modules/drivers/canbus/can_comm:message_manager_base",
    ],
)

cc_test(
    name = "accel_rpt_131_test",
    size = "small",
    srcs = [
        "accel_rpt_131_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)


cc_test(
    name = "global_rpt_151_test",
    size = "small",
    srcs = [
        "global_rpt_151_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "steering_motor_rpt_1_201_test",
    size = "small",
    srcs = [
        "steering_motor_rpt_1_201_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "steering_motor_rpt_2_202_test",
    size = "small",
    srcs = [
        "steering_motor_rpt_2_202_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "steering_motor_rpt_3_203_test",
    size = "small",
    srcs = [
        "steering_motor_rpt_3_203_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "accel_cmd_130_test",
    size = "small",
    srcs = [
        "accel_cmd_130_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agilex/protocol:canbus_agilex_protocol",
        "@gtest//:main",
    ],
)

cpplint()
